package vn.mycrm.server.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.InheritanceStrategy;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class AbstractEntity {

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    protected Key key;
		
	@Persistent
	protected String ghiChu;

	@Persistent
	protected AbstractEntityStatus status = AbstractEntityStatus.ENABLE;	

	public String getGhiChu() {
		return ghiChu;
	}

	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}

	public AbstractEntityStatus getStatus() {
		return status;
	}

	public void setStatus(AbstractEntityStatus status) {
		this.status = status;
	}

	public Key getKey() {
		return key;
	}	
	
}
